<template>
	<view class="centent">
		<!-- 日历 -->
		<view class="rili">
			<uni-calendar :insert="true" :lunar="false" />
		</view>

		<view class="jifen">
			<view class="">
				<view class="">0</view>
				<view class="">可用积分</view>
			</view>
			<view class="">
				<view class="">0</view>
				<view class="">今日获得积分</view>
			</view>
			<view class="">
				<view class="">0</view>
				<view class="">已使用积分</view>
			</view>
		</view>

		<view class="shuju">
			<view class="xuanxiang">
				<view v-for="(item, idx) in list" class="item">
					<view :class="this_index==item.id?'yes':'no'" @tap="leixing(item.id)">
						{{item.name}}
					</view>
				</view>
			</view>
			<view class="">
				<image style="margin-left: 80rpx;" src="@/static/zwsj.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				this_index: 1,
				list: [{
					id: 1,
					name: '获得明细'
				}, {
					id: 2,
					name: '消耗明细'
				}]
			}
		},
		methods: {
			leixing(id) {
				this.this_index = id
			},
		}
	}
</script>

<style>
	/* 日历颜色:
	背景渐变:EF8250-F55104
	选中背景:FBE301
	选中字:ED5C33 */
	.centent {
		background-color: #F5F6F8;
	}

	.rili {
		
		background-color: white;
		/* background: linear-gradient(to right, #EF8250, #F55104); */
	}

	.jifen {
		height: 130rpx;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: space-around;
		background-color: white;
		border-top: 1px solid #F5F6F8;
	}

	.shuju {
		margin-top: 25rpx;
		background-color: white;
	}

	.xuanxiang {
		display: flex;
		justify-content: space-evenly;
		margin-top: 15rpx;
	}

	.item>view {
		padding: 20rpx 0;
		font-size: 32rpx;
	}

	.yes {
		border-bottom: 1px solid #E40000;
	}

	.no {
		/* background-color: #F5F6F9; */
	}
</style>